<?php
namespace Home\Model;
use Think\Model;
//用户打赏文章信息表
class DsModel extends Model {
	//根据文章id获取打赏的用户信息
	public function getDsList($id){
		$ds = M('ds d');
		$where = array(
			'aid' => $id	
		);
		//多表联查查询出来用户信息
		$list = $ds->join("blog_user_info ui on d.uid=ui.uid")
					 ->where($where)->select();
		return $list;
	}
}